﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ISSMoviePlex.DAL.Repositories;
using ISSMoviePlex.DAL.Models;
using ISSMoviePlex.BLL;

namespace ISSMoviePlex.Member.Controllers
{
    public class MovieController : Controller
    {
        MovieBLL _movieLogic = new MovieBLL();

        public ActionResult Index()
        {
            IEnumerable<Movie> movies = _movieLogic.GetAllMovies();
            return View(movies);
        }

        //
        // GET: /Movie/Details/5

        public ActionResult Details(int MovieId)
        {
            Movie movie = _movieLogic.GetMovie(MovieId);
            return View(movie);
        }

       
    }
}
